package com.mxx.bu_yang.dialog;

import com.mxx.bu_yang.R;
import com.yp.loading.base.BaseDialog;

/**
 * 作者：刘江飞
 * 时间：2020/10/15  9:03
 * 邮箱：642371742Z@qq.com
 * 描述：
 **/
public class UploadCheckedDialog extends CancelSureDialog {
    private BackShowDialogListener backShowDialogListener;

    public void setBackShowDialogListener(BackShowDialogListener backShowDialogListener) {
        this.backShowDialogListener = backShowDialogListener;
    }

    /**
     * Sets layout id.
     *
     * @return the layout id
     */

    @Override
    protected int setLayoutId() {
        return R.layout.dialog_upload_checked;
    }


    @Override
    protected void rightBtnSureClick() {
        if (backShowDialogListener == null) {
            return;
        }
        dismiss();
        backShowDialogListener.isShowDialog(true);
    }

    public interface BackShowDialogListener {
        void isShowDialog(boolean show);
    }
}
